package com.hgkj.cloud.base.dao;

import com.hgkj.cloud.base.domain.AppChannel;
import org.apache.ibatis.annotations.Mapper;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Mapper
public interface AppChannelMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(AppChannel record);

    int insertSelective(AppChannel record);

    AppChannel selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(AppChannel record);

    int updateByPrimaryKey(AppChannel record);

    AppChannel selectDataByCoupon(String coupon);

    AppChannel selectDataByCode(String code);

    AppChannel getFirstChannel();

    AppChannel selectDataByMap(Map<String, Object> map);

    AppChannel getChannelByCodeOrFid(Map<String, Object> map);

    Long listAllDataCount(Map<String, Object> map);

    List<AppChannel> listAllData(Map<String, Object> map);

    long getChannelCount(HashMap<Object, Object> map);

    AppChannel selectDataByDevCode(String devCode);

    int updateDataBychannelId(Map<String, Object> map);

}